const {ccclass, property} = cc._decorator;

@ccclass
export default class Ground extends cc.Component {

  

    points:Array<cc.Vec2> = []
   

    start () {
        this.points = [];
        let col = this.node.getComponent(cc.PolygonCollider);
        for (let i = 0; i < col.points.length; i++) {
            this.points.push(new cc.Vec2(col.points[i].x+this.node.x,col.points[i].y+this.node.y))    
        }
    }

  

}
